
/*
        订单类
 */

public class Order {
    private Goods goods;        //所购商品对象
    private int amount;         //所购商品数量
    private double transactionMoney;    //订单交易总额
    private boolean isPay;      //支付状态（是否支付）
    //无参构造
    public Order() {
    }

    //全参构造
    public Order(Goods goods, int amount, double transactionMoney, boolean isPay) {
        this.goods = goods;
        this.amount = amount;
        this.transactionMoney = transactionMoney;
        this.isPay = isPay;
    }

    //get，set方法
    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getTransactionMoney() {
        return transactionMoney;
    }

    public void setTransactionMoney(double transactionMoney) {
        this.transactionMoney = transactionMoney;
    }

    public boolean isPay() {
        return isPay;
    }

    public void setPay(boolean pay) {
        isPay = pay;
    }
}
